package com.whit.nuoge.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(value = "/common/center")
public class CommonServlet extends BaseServlet{

    protected void gotohome(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getServletContext().setAttribute("picBaseUrl","/nuoge/upload");
        System.out.println("跳转到首页.........................");
        req.getRequestDispatcher("/pages/index.jsp").forward(req,resp);
    }
}
